package com.spider.site.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import org.springframework.format.annotation.DateTimeFormat;

/**
 * 用户信息
 * @author wq
 *
 */
@Entity
@Table(name = "spider_user")
public class User {

	@Id
	@Column(name = "ID" , length = 50)
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Long id;//序号
	
	@Column(name = "LOGIN_ID" , length = 50)
	private String loginId;//用户账号
	
	@Column(name = "PASSWORD" , length = 50)
	private String password;//密码
	
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@Column(name = "CREATE_DATE" , length = 50)
	private Date createDate;//创建时间

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getLoginId() {
		return loginId;
	}

	public void setLoginId(String loginId) {
		this.loginId = loginId;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}
	
}
